package DTO;

public class User {
	private String id;
	private String phoneNumber;
	private String passwords;
	private String groupId;
	private String firstName;
	private String lastName;
	private String email;
	private String address;
	private String isOnline;
	private String longitude;
	private String latitude;
	private String lastUpdate;
	public void setId(String inputId){
		id = inputId;
	}
	public String getId(){
		return id;
	}
	public User(String inputPhoneNumber,
					String inputPass,
					String inputGroupId,
					String inputFirst,
					String inputLast,
					String inputEmail,
					String inputAddress){
		phoneNumber = inputPhoneNumber;
		passwords = inputPass;
		groupId = inputGroupId;
		firstName = inputFirst;
		lastName = inputLast;
		email = inputEmail;
		address = inputAddress;
		isOnline = "0";
		
	}
	
	
	public void setPhoneNumber(String inputPhoneNumber){
		phoneNumber = inputPhoneNumber;
	}
	public String getPhoneNumber(){
		return phoneNumber;
	}
	
	
	public void setPasswords(String inputPasswords){
		passwords = inputPasswords;
	}
	public String getPasswords(){
		return passwords;
	}
	
	
	public void setGroupId(String inputGroupId){
		groupId = inputGroupId;
	}
	public String getGroupId(){
		return groupId;
	}
	
	
	public void setFirstName(String inputFirstName){
		firstName = inputFirstName;
	}
	public String getFirstName(){
		return firstName;
	}
	
	
	public void setLastName(String inputLastName){
		lastName = inputLastName;
	}
	public String getLastName(){
		return lastName;
	}
	
	
	public void setEmail(String inputEmail){
		email = inputEmail;
	}
	public String getEmail(){
		return email;
	}
	
	
	public void setAddress(String inputAddress){
		address = inputAddress;
	}
	public String getAddress(){
		return address;
	}
	
	public void setIsOnline(String input){
		if(input.compareTo("1")==0) isOnline ="Online";
		else isOnline="Offline";
	}
	public String getIsOnline(){
		return isOnline;
	}
	
	public void setLongitude(String inputLongitude){
		longitude = inputLongitude;
	}
	public String getLongitude(){
		return longitude;
	}
	
	public void setLatitude(String inputLatitude){
		latitude = inputLatitude;
	}
	public String getLatitude(){
		return latitude;
	}
	
	public void setLastUpdate(String inputLastUpdate){
		lastUpdate = inputLastUpdate;
	}
	public String getLastUpdate(){
		return lastUpdate;
	}
	
	public User(){
		
	}
}
